﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditOrder.aspx.cs" Inherits="CarRental.View.Order.EditOrder" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <link rel="stylesheet" type="text/css" href="../../js/My97DatePicker/skin/WdatePicker.css" />
    <link href="../../js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
    <form runat="server" id="EditCarForm">
        <fieldset>
            <legend>Edit Car Form</legend>
            <ol>
                <li>
                    <asp:Label ID="lblOrderId" runat="server" AssociatedControlID="tbOrderNo">Order No</asp:Label>
                    <asp:TextBox runat="server" ID="tbOrderNo" Enabled="False" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbCarNo">Car No</asp:Label>
                    <asp:TextBox runat="server" ID="tbCarNo" Enabled="False" />

                </li>
                <li>
                    <asp:Label ID="lblRentFDate" runat="server" AssociatedControlID="tbRentFDate">Rent from date</asp:Label>
                    <asp:TextBox ID="tbRentFDate" onclick="WdatePicker();" runat="server" Width="200px" Height="25px"></asp:TextBox>
                </li>
                <li>
                    <asp:Label ID="lblRentTDate" runat="server" AssociatedControlID="tbRentTDate">Rent from date</asp:Label>
                    <asp:TextBox ID="tbRentTDate" onclick="WdatePicker();" runat="server" Width="200px" Height="25px"></asp:TextBox>
                </li>
                <li>
                    <asp:Label ID="lblRealReturn" runat="server" AssociatedControlID="tbRealReturn">Real return date</asp:Label>
                    <asp:TextBox ID="tbRealReturn" onclick="WdatePicker();" runat="server" Width="200px" Height="25px"></asp:TextBox>
                </li>
                <li>
                    <asp:Label ID="lbl_Days" runat="server" Text="Total Rent Days" Width="100px" />
                    <asp:TextBox ID="tbTotalDays" runat="server" Enabled="false" />
                </li>
                <li>
                    <asp:Label ID="lb_Discount" runat="server" Text="Discount (%)" Width="100px" />
                    <asp:TextBox ID="tbDiscount" runat="server" Enabled="false" />

                </li>
                <li>
                    <asp:Label ID="lblAmount" runat="server" Text="Amount" Width="100px" />
                    <asp:TextBox ID="tbAmount" runat="server" Enabled="false" />
                </li>
                <li>
                    <asp:Label ID="lblDamage" runat="server" AssociatedControlID="ddlDamage">Damage ?</asp:Label>
                    <asp:DropDownList ID="ddlDamage" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblAdditionalFee" runat="server" AssociatedControlID="tbAdditionalFee">Additional Fee</asp:Label>
                    <asp:TextBox runat="server" ID="tbAdditionalFee" />
                </li>
                <li>
                    <asp:Label ID="lblStatus" runat="server" AssociatedControlID="ddlStatus">Order Status</asp:Label>
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblRemarks" runat="server" AssociatedControlID="tbRemarks">Remarks</asp:Label>
                    <asp:TextBox runat="server" ID="tbRemarks" Height="89px" TextMode="MultiLine" Width="191px" />
                </li>
            </ol>
            <asp:Button runat="server" ID="btnEditOrder" Text="Update Order" OnClick="btnEditOrder_Click" />
            <asp:Button runat="server" ID="btnBack" Text="Back" OnClick="btnBack_Click" />
            <%--<asp:Button runat="server" ID="btnDetele" Text="Delete Car" OnClientClick="return confirm('Are you sure?');" OnClick="btnDetele_Click" />--%>
        </fieldset>
    </form>
</asp:Content>
